<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport"
    content="width=device-width, initial-scale=1.0">
  <title>flex布局</title>
  <link rel="stylesheet"
    href="./styles/index.css">
</head>

<!-- containter 宽度不固定 
  box1 宽度固定 
  如何用 box2 填满 containter 剩余空间？ -->

<body>
  <div class="container">
    <div class="box1"></div>
    <div class="box2"></div>
  </div>
</body>

</html>